import React, { Component } from 'react'

export default class Field extends Component {
    render() {
        return (
            <div style={{ background: "yellow" }}>
                <label>{this.props.label}</label>
                <input type={this.props.type} onChange={(evt) => {
                    this.props.onChangeEvt(evt.target.value);
                }} value={this.props.value} />
            </div>
        )
    }
}
